
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<%@ taglib uri="/struts-tags" prefix="s" %>
<%@ taglib uri="/sys-tags" prefix="sys" %>
<html>
<head>
<title><s:text name="title_homePage"></s:text></title>
<%@ include file="header.jsp"%>
<link href="${appPath}/css/index.css"rel="stylesheet" type="text/css" />
<link href="${appPath}/css/nav.css"rel="stylesheet" type="text/css" />
<link href="${appPath}/css/login.css"rel="stylesheet" type="text/css" />
<script type="text/javascript">
$(function(){
var goods="<s:property value="goodsList"/>";
if(goods==""||null){
	//document.forms[0].action = appPath+"/webgoods/homePageInit.action";
	//document.forms[0].submit();
}
});

</script>
</head>
<body><%@ include file="top.jsp"%>
<form action=""></form>

<div id="" style="position: relative;width: 1050px;margin: 0 auto;background:#fff;zoom:1">
		<s:iterator value="goodsList" id="goodsList" status="st">
		<div class="item" style="width: 242px;height: 330px;margin-left: 16px;margin-top: 20px;float: left;box-shadow: #ddd 0px 2px 8px;position: relative;">
			<div class="pic" style="width: 240px;height: 240px;position: relative;overflow: hidden;">
			<a href="${appPath}/webgoods/goodInfo.action?id=<s:property value='%{id}'/>" target="_blank" onclick="">
			<%-- <img style="width:240px;" src="<s:property value='%{imageUrl}' />"  title="<s:property value='%{imageName}' />"  style="display:inline;"> --%>
			<s:hidden name="goodsList[%{#st.index}].imageUrl"/><sys:image imagePath="${imageUrl}"  width="240" height="240"/>
             </a>
			</div>
			
			<div class="name" style="text-align:left;">
			<a href="${appPath}/webgoods/goodInfo.action?id=<s:property value='%{id}'/>" target="_blank" title="" onclick="" style="text-decoration: none;color:#333;">
			<s:property value="%{introduce}"/></a>
			</div>
			
			<div class="name" style="position:relative;height:30px">
			<div class="price" style="font-family: 'Hiragino Sans GB','microsoft yahei';color: #f80;font-size: 18px;font-weight: bold;text-align:left;position:absolute;top:0;left:0;width:80%;height:30px">
						<span style="font-size: 12px">¥</span><s:property value="%{price}"/><span style="font-size: 12px">元</span>
			</div>
			<div class="name" style="position:absolute;top:0;left:80%;width:20%;height:30px">
						<s:if test="#session.user!=null"><a href="${appPath}/webgoods/displayGoodsById.action?id=<s:property value='%{id}'/>" style="color:#777;" target="_blank" onclick="">修改</a>
						<%-- <input type="button" class="button" id="updatebutton" value="修改" style="width:40px;height:25px;" onclick="update('${id}')"/> --%></s:if>
			</div>
			</div>
			</div>
		</s:iterator>
</div>

<%@ include file="footer.jsp"%>

</body>
</html>